package ModelLayer;

import java.sql.Date;

public class Invoice
{
	private int invoiceNo;
	private Date paymentDate;
	private double total = 0;
	
	public Invoice()
	{
	}

	public Invoice(int invoiceNo)
	{
		this.invoiceNo = invoiceNo;
	}

	public Invoice(Date paymentDate)
	{
		this.paymentDate = paymentDate;
	}

	public int getInvoiceNo()
	{
		return invoiceNo;
	}

	public Date getPaymentDate()
	{
		return paymentDate;
	}

	public double getTotal()
	{
		return total;
	}

	public void setInvoiceNo(int invoiceNo)
	{
		this.invoiceNo = invoiceNo;
	}

	public void setPaymentDate(Date paymentDate)
	{
		this.paymentDate = paymentDate;
	}

	public void setTotal(double total)
	{
		this.total = total;
	}

	@Override
	public String toString()
	{
		return "Invoice [getInvoiceNo()=" + getInvoiceNo() + ", getPaymentDate()="
				+ getPaymentDate() + ", getTotal()=" + getTotal() + "]";
	}
	
	

}
